mem hotplug: Fix an incorrect sanity check in memory add
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 4 Feb 2010 13:09:30 +0000 (13:09 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 4 Feb 2010 13:09:30 +0000 (13:09 +0000)
commit47f441d6b6a23f223edf27951189ea0828d121d0
tree26132a9d4de7964452d7832ec34a508d4b39e199
parent8973872b3401a4948670008b28e77d597259877c
mem hotplug: Fix an incorrect sanity check in memory add

Current, memory hot-add will fail if the new added memory is bigger
than current max_pages. This is really a stupid checking, considering
user may hot-add the biggest address riser card firstly.

This patch fix this issue. It check if all new added memory is
unpopulated, if yes, then it is ok.

Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
xen/arch/x86/x86_64/mm.c